package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class IndexGoodsResponse {
    @ApiModelProperty(value = "商品列表，分页", dataType = "IndexGoodsResponse.Goods")
    private PageResponse2<Goods> goodsPage;

    @Data
    @Builder
    @ApiModel("IndexGoodsResponse.Goods")
    public static class Goods {
        private Integer goodsId;
        private String goodsName;
        private String photo;
        private String price;
        @ApiModelProperty("人气")
        private Long popularityNum;
        @ApiModelProperty(value = "3d vr、ar、视频、中科公信")
        private List<String> labels;
        @ApiModelProperty(value = "中科公信:1存在")
        private Integer hasZkgx;
        @ApiModelProperty(value = "店铺名称")
        private String companyName;
    }
}
